import view from '@/router/view'
const route = {
  state: {
    sideRoutes: view,

  },
  //异步操作
  actions: {

  },
  //同步操作
  mutations: {

  },
  getters: {
    /*getMenus: state => {
      let {sideRoutes} = state;
      sideRoutes.map(item => {
        if (item.children.length === 1) {
          item = item.children[0]
        }
      });
      return sideRoutes
    }*/
  }
}
export default route;
